cordova.define("com.waiqin365.h5.ui.wqui", function(require, exports, module) {

			module.exports = new WqUI();

			var exec = require('cordova/exec');
			var utils = require('cordova/utils');

			function WqUI() {

			}

			WqUI.prototype.startProgressBar = function(message) {
				var json = '{"flag":"startProgressBar","message":"' + message
						+ '"}';
				exec(null, null, "WqUI", "wqUI", [json]);
			};
			WqUI.prototype.stopProgressBar = function() {
				var json = '{"flag":"stopProgressBar"}';
				exec(null, null, "WqUI", "wqUI", [json]);
			};
			WqUI.prototype.toast = function(message) {
				var json = '{"flag":"toast","message":"' + message + '"}';
				exec(null, null, "WqUI", "wqUI", [json]);
			};
			WqUI.prototype.datePicker = function(success, dateType) {
				var json = '{ "dateType" : "' + dateType + '"}';
				if(typeof dateType == 'object'){
					var json = '{ "dateType" : "' + dateType.index + '", "dateInit" : "' + dateType.dateInit + '"}';
				}
				exec(success, null, "WqDateSelectUI", "wqDateSelectUI", [json]);
			};
			WqUI.prototype.singleSelect = function(success, data) {
				exec(success, null, "WqSingleSelectUI", "wqSingleSelectUI",
						[data]);
			}

			WqUI.prototype.treeListSelectSingle = function(success, data) {
				exec(success, null, "WqTreeListSingleSelect",
						"wqTreeListSingleSelect", [data]);
			}

			WqUI.prototype.treeListsSelectMore = function(success, data) {
				exec(success, null, "WqTreeListMoreSelect",
						"wqTreeListMoreSelect", [data]);
			}
			WqUI.prototype.selectUI = function(success, data) {
				exec(success, null, "WqNewSelectUI",
						"wqNewSelectUI", [data]);
			}
			WqUI.prototype.wqDistrictSelect = function(success, data) {
				exec(success, null, "WqDistrictSelect",
						"wqDistrictSelect", [data]);
			}

		});
